package com.example.demobk.mapper;

import com.example.demobk.entity.Articleinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int getArtCountByUid(@Param("uid")Integer uid);

    List<Articleinfo> getMyList(@Param("uid") Integer uid);

    int del(@Param("id") Integer id,@Param("uid")Integer uid);

    Articleinfo getDetail(@Param("id") Integer id);
    int incrRcount(@Param("id") Integer id);
   int add(Articleinfo articleinfo);
    int update(Articleinfo articleinfo);
    List<Articleinfo> getListPage(@Param("psize") Integer psize,@Param("offsize")  Integer offsize);

}
